package com.wzcl.app.model.vo;


import com.wzcl.app.dao.model.HomeMassage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

@EqualsAndHashCode(callSuper = false)
@Data
public class HomeMassageVo extends BaseVo{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "(标题)键")
    private String title;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "组别")
    private String groupName;

    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "排序")
    private Integer orderNo;

    @ApiModelProperty(value = "是否默认")
    private Boolean isDefault;

    @ApiModelProperty(value = "链接Url")
    private String linkUrl;


    private HomeMassageVo() {
    }

    public static HomeMassageVo create(HomeMassage homeMassage){
        HomeMassageVo homeMassageVo = new HomeMassageVo();
        BeanUtils.copyProperties(homeMassage,homeMassageVo);
        homeMassageVo.translationValueStr();
        return homeMassageVo;
    }

    @Override
    public void translationValueStr() {

    }

    @Override
    public void processResources() {

    }
}
